﻿using JESAI.Application.Abstractions.Sys.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.Application.Abstractions.Sys
{
    /// <summary>
    /// 登录服务
    /// </summary>
    public interface ILoginService
    {
        /// <summary>
        /// 通过用户名获取用户信息
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns>用户信息</returns>
        public UserInfoDto GetUserInfoByUserName(string userName);

        /// <summary>
        /// 根据用户ID获取用户角色信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns>用户角色信息</returns>
        public List<RoleDto> GetUserRoleByUserId(long userId);
    }
}
